<!DOCTYPE html>
<html>
<head>
    <title>状态对应消息列表</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    
    <link rel="stylesheet" href="${request.contextPath}/statics/bootstrap/css/bootstrap.css">
    
    <script src="${request.contextPath}/statics/plugins/jquery/jquery-3.3.1.min.js"></script>
    <script src="${request.contextPath}/statics/bootstrap/js/bootstrap.js"></script>
    <script src="${request.contextPath}/statics/plugins/vue/vue.js"></script>
    <script src="${request.contextPath}/statics/js/util.js"></script>
    
    <style type="text/css">
        .center, th {
            text-align: center;
        }
        .msg-log-dtl:hover {
            text-decoration: underline;
            font-weight: bolder;
            color: blue;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div id="slothMain" v-cloak style="margin: 30px 50px 30px 50px;">
    <div class="row">
        <div class="panel panel-default">
            <div class="panel-body">
                <table class="table table-bordered">
                    <thead>
                        <tr class="center">
                            <th>ID</th>
                            <th>消息类型</th>
                            <th>消息创建时间</th>
                            <th>消息处理时间</th>
                            <th>消息处理耗时(s)</th>
                            <th>是否同步消息</th>
                            <th>是否单应用消息</th>
                            <th>消息处理队列</th>
                            <th>消息处理状态</th>
                            <th>失败原因</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-if="msgLogData.length == 0"><td colspan="10">暂无消息日志数据</td></tr>
                        <tr v-if="msgLogData.length != 0" v-for="item in msgLogData" :class="getRowClass(item.dealStatus)">
                            <td class="msg-log-dtl" v-on:click="goToMsgLogDtl(item.id)">{{item.id}}</td>
                            <td class="center">{{item.type}}</td>
                            <td class="center">{{util.formatMillisec(item.timeStamp, "yyyy-MM-dd hh:mm:ss")}}</td>
                            <td class="center">{{util.formatMillisec(item.updatedTime, "yyyy-MM-dd hh:mm:ss")}}</td>
                            <td class="center">{{(item.updatedTime-item.timeStamp)/1000}}</td>
                            <td class="center">{{item.sync ? "是" : "否"}}</td>
                            <td class="center">{{item.single ? "是" : "否"}}</td>
                            <td>{{item.queueName}}</td>
                            <td class="center">{{getDealStatusWord(item.dealStatus)}}</td>
                            <td>{{item.errorMsg}}</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script src="${request.contextPath}/statics/js/listOfDealStatus.js?_${.now?long}"></script>
</body>
</html>